import api from './index'

export const authApi = {

  login(username, password) {
    return api.post('/api/auth/login', { username, password })
  },
  

  register(userData) {
    return api.post('/api/auth/register', userData)
  },
  

  logout() {
    return api.post('/api/auth/logout')
  }
} 